﻿@{
    Layout = "../Shared/_Default.cshtml";
    ViewBag.PageTitle = T(Res.Name("Title"), JDM.Int64(Model.Topics.TotalCount));
}

<div class="box">
    <section>
    @{
        Html.RenderPartial("_Topics", (object)Model.Topics);
        Html.RenderPartial("_Pager", new ViewDataDictionary 
        { 
            { "PageNum", 6 },
            { "PageCount", Math.Ceiling(JDM.Double(Model.Topics.TotalCount) / Model.CountPerPage) }, 
            { "PageIndex", Request.QueryParam("page", 0) },
            { "PageParam", "page" },
            { "PageSize", Model.CountPerPage },
            { "PageRoute", Loc.Act("Search").Use("memberID", "searchTerm").Localized() } 
        });
    }
    </section>
</div>
